import Vue from 'vue'
import 'normalize.css/normalize.css' 
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import locale from 'element-ui/lib/locale/lang/zh-CN' 
import '@/styles/index.scss'
import formCreate from "@form-create/element-ui"
import VCharts from 'v-charts'
import Viewer from 'v-viewer'
import VueQuillEditor from "vue-quill-editor"
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
import 'viewerjs/dist/viewer.css'

import i18n from "./lang";
import App from "./App";
import store from "./store";
import router from "./router";
import "@/icons";
import "@/permission";
Vue.use(ElementUI, { locale, zIndex: 1000 });
Vue.use(formCreate);
Vue.use(VCharts);
Vue.use(Viewer);
Vue.use(VueQuillEditor);
Vue.config.productionTip = false

Vue.config.warnHandler = function(msg, vm, trace) {
  console.warn("全局警告捕获:", msg);
};
Vue.config.errorHandler = function(err, vm, info) {
  console.error("全局错误捕获:", err);
};

new Vue({
  el: '#app',
  router,
  store,
  i18n,
  render: h => h(App)
})
